<?php 
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
use yii\helpers\Html;
?>
<style>
	.itemList .item-name{width: 70px;}
	input[type="text"]{padding-left: 10px;}
	input[type="reset"] {background-color:#999;}
</style>

<div class="row">
	<div class="container lh30">
		<?= isset($this->params['crumbs']) ? $this->params['crumbs'] : '' ?>
	</div>
</div>
	<div class="container mt10">
		<?php $form=ActiveForm::begin(['id'=>'myform']);?>
			<ul class="add_user">
				<li class="itemList clearfix">
					<label class="item-name">账户名称</label>
					<div class="item-txt">
						<input type="text" name="user_name"  datatype="*"/>
						<span class="sp2">*</span>
					</div>
				</li>
				<li class="itemList clearfix">
					<label class="item-name">账户密码</label>
					<div class="item-txt">
						<input type="text" name="user_pass"  datatype="*"/>
						<span class="sp2">*</span>
					</div>
				</li>
				<li class="itemList clearfix">
					<label class="item-name">老板名称</label>
					<div class="item-txt">
						<input type="text" name="boss_name" value="" datatype="*"/>
						<span class="sp2">*</span>
					</div>
				</li>
				<li class="itemList clearfix">
					<label class="item-name">店面名称</label>
					<div class="item-txt">
						<input type="text" name="shop_name" value="" datatype="*"/>
						<span class="sp2">*</span>
					</div>
				</li>
				<li class="itemList clearfix">
					<label class="item-name">所属代理商</label>
					<div class="item-txt">
						<select name="agent_id">
							<?php foreach ($agent_list as $r){ ?>
								<option value="<?=Html::encode($r->uid)?>"><?=Html::encode($r->user_name)?></option>
							<?php }?>
						</select>
					</div>
				</li>
				<li class="itemList clearfix">
					<label class="item-name">联系电话</label>
					<div class="item-txt">
						<input type="text" name="phone" id="time" datatype="*"/>
						<span class="sp2">*</span>
					</div>
				</li>

			</ul>
		<div style="padding-left: 80px;">
			<input type="submit" value="保存" class="sub btnBg" />
			<input type="reset" value="取消" class="reset btnBg" />
		</div>


		<?php ActiveForm::end();?>
	</div>
